﻿using Furesoft.Patterns.Observer;
using VisitorExample;

namespace ObserverExample
{
    public class FruitObserver : IObserver<Fruit>
    {
        public void Update(Observable<Fruit> obj)
        {
            var f = (Fruit)obj;
            System.Console.WriteLine(f.Price);
        }
    }
}
